package com.dadibadi.core.dao.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.Date;

/**
 * @author : lkfs@163.com
 * @date : 2025-08-18 16:43
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "work_info", autoResultMap = true)
public class WorkInfoTab extends Model<WorkInfoTab> {

    @Serial
    private static final long serialVersionUID = 843745627370781686L;

    /**
     * work_id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String workId;

    /**
     * created_at
     */
    @TableField
    private Date createdAt;

    /**
     * user_id
     */
    private String userId;

    /**
     * context
     */
    private String context;

    /**
     * title
     */
    private String title;

    /**
     * description
     */
    private String description;

    /**
     * type 0是文章 1是图片
     */
    private int type;

}
